import time

from celery_tasks.main import app

@app.task(bind=True,name="haha_test")
def debug_task(self):
     for i in range(0,10):
         time.sleep(1)
     print(i)